package com.service.dao.enums;

import com.google.common.collect.Lists;
import lombok.Getter;

import java.math.BigDecimal;
import java.util.List;

/**
 * <dl>
 * <dt>back-end</dt>
 * <dd>Description:</dd>
 * <dd>Copyright: Copyright (C) 2015</dd>
 * <dd>Company: </dd>
 * <dd>CreateDate: 2019年11月16日</dd>
 * </dl>
 *
 * @author
 */
public enum StarGradeEnum {

    one(1, "0星"),
    two(2, "半星"),
    three(3, "1星"),
    four(4, "2星"),
    five(5, "3星"),
    six(6, "4星"),
    seven(7, "5星"),
    eight(8, "6星"),
    nine(9, "7星"),
    ten(10, "8星"),
    eleven(11, "9星"),
    twelve(12, "10星"),
    hundred_one(101, "0星"),
    hundred_two(102, "半星"),
    hundred_three(103, "1星"),
    hundred_four(104, "2星"),
    hundred_five(105, "3星"),
    hundred_six(106, "4星"),
    hundred_seven(107, "5星"),
    hundred_eight(108, "6星"),
    hundred_nine(109, "7星"),
    hundred_ten(110, "8星"),
    hundred_eleven(111, "9星"),
    hundred_twelve(112, "10星"),
    ;

    @Getter
    private Integer value;

    @Getter
    private String starNum;

    StarGradeEnum(Integer value, String starNum) {
        this.value = value;
        this.starNum = starNum;
    }

    public static List<Integer> getStarGrade(){
        return Lists.newArrayList(two.value, three.value,four.value,five.value,six.value,seven.value,
                eight.value,nine.value,ten.value,eleven.value,twelve.value,
                hundred_two.value,hundred_three.value,hundred_four.value,hundred_five.value,
                hundred_six.value,hundred_seven.value,hundred_eight.value,hundred_nine.value,hundred_ten.value,
                hundred_eleven.value,hundred_twelve.value);
    }

    public static List<Integer> getLeaderGrade(){
        return Lists.newArrayList(twelve.value, hundred_twelve.value);
    }

}
